import { GET_MIAOSHA_DATA, GET_SWIPER_DATA, GET_TUIJIAN_DATA, GET_LIST_DATA, ITEM_OBJ_DATA } from '../content';
const initData = {};
const wzdata = (state = initData, action) => {
    const { data, type } = action;
    switch (type) {
        case GET_MIAOSHA_DATA:
            return Object.assign({}, state, { miaoshaObj: data });
        case GET_SWIPER_DATA:
            return Object.assign({}, state, { swiperList: data });
        case GET_TUIJIAN_DATA:
            return Object.assign({}, state, { tuijianList: data });
        case GET_LIST_DATA:
            return Object.assign({}, state, { list: data });
        case ITEM_OBJ_DATA:
            return Object.assign({}, state, { itemObj: data });
        default:
            return state;
    }
}
export default wzdata;